module Base
{
	model fhq93RangerLBed
	{
		mesh = vehicles/vehicle_fhq93rangerLBed|fhqRanger2g_LBed,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhq93RangerLBed_Exh
	{
		mesh = vehicles/vehicle_fhq93rangerLBed|fhqRanger2g_Exh_LBed,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	vehicle fhq93RangerLBed
    {
        template! = fhq93Ranger,

        model
        {
            file = fhq93RangerLBed,
            scale = 1.8200,
            offset = 0.0000 0.0659 0.0330,
        }

        skin
        {
            texture = Vehicles/vehicle_fhq93RangerLBed_shell,
        }

        skin
        {
            texture = Vehicles/vehicle_fhq93RangerLBed_2_shell,
        }

        textureMask = Vehicles/vehicle_fhq93RangerLBed_mask,
        textureLights = Vehicles/vehicle_fhq93RangerLBed_lights,
        extents = 0.8132 0.6154 2.3407,
        mass = 1000,
        physicsChassisShape = 0.8132 0.6154 2.3407,
        centerOfMassOffset = 0.0000 0.3077 0.0055,
        shadowExtents = 0.8491 2.4360,
        shadowOffset = 0.0000 -0.0004,

        wheel FrontLeft
        {
            front = true,
            offset = 0.3297 -0.1044 0.7418,
            radius = 0.17f,
            width = 0.29f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.3297 -0.1044 0.7418,
            radius = 0.17f,
            width = 0.29f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.3297 -0.1044 -0.6209,
            radius = 0.17f,
            width = 0.29f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.3297 -0.1044 -0.6209,
            radius = 0.17f,
            width = 0.29f,
        }

        passenger FrontLeft
        {
            position inside
            {
                offset = 0.1593 0.1484 0.1264,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.5440 -0.1868 0.1044,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.1593 0.1484 0.1264,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.5440 -0.1868 0.1044,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        area Engine
        {
            xywh = 0.0000 1.3846 0.8132 0.4066,
        }

        area TruckBed
        {
            xywh = 0.0000 -0.8216 1.6593 1.5714,
        }

        area SeatFrontLeft
        {
            xywh = 0.6429 0.2033 0.4725 0.4725,
        }

        area SeatFrontRight
        {
            xywh = -0.6429 0.2033 0.4725 0.4725,
        }

        area GasTank
        {
            xywh = 0.6319 -0.3297 0.4505 0.4505,
        }

        area TireFrontLeft
        {
            xywh = 0.6429 0.7692 0.4725 0.4725,
        }

        area TireFrontRight
        {
            xywh = -0.6429 0.7692 0.4725 0.4725,
        }

        area TireRearLeft
        {
            xywh = 0.6429 -0.5110 0.4725 0.4725,
        }

        area TireRearRight
        {
            xywh = -0.6429 -0.5110 0.4725 0.4725,
        }

        part TruckBedOpen
        {
            container
            {
                capacity = 135,
            }
        }

        part GloveBox
        {
            model Default
            {
                file = fhq93Ranger_BumperR,
                offset = 0.0000 0.0000 -0.1527,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        part Muffler
        {
            model Default
            {
                file = fhq93RangerLBed_Exh,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 0.1868 -0.1672,
            extents = 0.8022 0.3736 1.8791,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.3132 0.1557,
            extents = 0.8022 0.6154 0.3626,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.2148 0.8087,
            extents = 0.8022 0.2967 0.6044,
            rotate = 10.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.3077 0.2693,
            extents = 0.8022 0.3407 0.5385,
            rotate = -45.0000 0.0000 0.0000,
        }

        attachment trailer
        {
            offset = 0.0000 0.0140 -1.1902,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 0.0469 1.1418,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
}
